package com.itgaoshu.hospitalproject.service.impl;

import com.itgaoshu.hospitalproject.bean.Register;
import com.itgaoshu.hospitalproject.mapper.LeaveMapper;
import com.itgaoshu.hospitalproject.service.LeaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class LeaverServiceImpl implements LeaveService {
    @Autowired
    private LeaveMapper leaveMapper;
    //将原有的病床改为空床
    @Override
    public int updateBed(Register register) {
        return leaveMapper.updateBed(register);
    }
}
